package start.doubudouyin.mapper;

import start.doubudouyin.entity.Admininfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import start.doubudouyin.entity.Usersinfo;

import java.util.Date;
import java.util.List;

/**
* @author 38798
* @description 针对表【admininfo(管理员信息表)】的数据库操作Mapper
* @createDate 2025-05-30 10:57:42
* @Entity start.doubudouyin.entity.Admininfo
*/
public interface AdmininfoMapper extends BaseMapper<Admininfo> {
    String isPhoneExist(String phone);
    String isIdcardExist(String idcard);
    Integer AdminLogin(String phone,String password);
    Integer isAdminOnline(Integer adminId);
    Integer AdminRegisterPass(Admininfo admininfo);

    Integer updateonlineStatus(Integer onlineStatus,Integer adminId);

    Admininfo getById(Admininfo admininfo);
    Integer UpdatePassword(String phone,String idcard,String password);
    String VerifyAdmin(String phone,String idcard);
    List<Admininfo> findAll();
    Integer deletebyId(Integer adminId);
    Integer updatePasswordById (String password,String adminId);
    String VerifyPassword(String adminId,String password);
    String VerifyId(String adminId,String idcard);
}




